package hottargui.domain.objectServer;

import hottargui.domain.Card;

public class DeckOfCardsUserImpl implements DeckOfCardsUser {
	
	private ObjectServer _objectServer;
	
	public DeckOfCardsUserImpl() {
		_objectServer = StandardObjectServerSingleton.getInstance();
	}
	
	/**
	 * Takes a card from top of deck keept and returns it
	 * @return a card
	 */
	public Card takeCardFromTopOfDeck() {
		return _objectServer.getDeckOfCards().takeCardFormTopOfDeck();
	}

	/**
	 * Tells how many cards are back in deck keept
	 * @return number of cards
	 */
	public int getNumberofCardsInDeckKeept() {
		return _objectServer.getDeckOfCards().countCardsInDeck(); 
	}
	
	
}
